package com.edu.model;

public enum PieceType {
	R_JU_1("rj1", "車"),
	R_JU_2("rj2", "車"),
	R_MA_1("rm1","馬"),
	R_MA_2("rm2","馬"),
	R_PAO_1("rp1","炮"), 
	R_PAO_2("rp2","炮"), 
	R_XIANG_1("rx1","相"),
	R_XIANG_2("rp2","相"),
	R_SHI_1("rs1","士"),
	R_SHI_2("rs2","士"),
	R_SHUAI("rs0", "帅"),
	R_BING_1("rb1","兵"), 
	R_BING_2("rb2","兵"),
	R_BING_3("rb3","兵"),
	R_BING_4("rb4","兵"),
	R_BING_5("rb5","兵"),
	B_JU_1("bj1", "俥"),
	B_JU_2("bj2", "俥"),
	B_MA_1("bm1","傌"),
	B_MA_2("bm2","傌"),
	B_PAO_1("bp1","砲"), 
	B_PAO_2("bp2","砲"),
	B_XIANG_1("bx1","象"),
	B_XIANG_2("bx2","象"),
	B_SHI_1("bs1","仕"),
	B_SHI_2("bs1","仕"),
	B_JIANG("bj0", "将"),
	B_ZU_1("bz1","卒"), 
	B_ZU_2("bz2","卒"),
	B_ZU_3("bz3","卒"),
	B_ZU_4("bz4","卒"),
	B_ZU_5("bz5","卒"),
	;
	private String key;
	private String name;
	private PieceType(String key, String name) {
		this.key = key;
		this.name = name;
	}
	public String getKey() {
		return key;
	}
	
	public String getName() {
		return name;
	}	
	
}